package purchase;
/*5)、设计一个多线程的程序如下：设计一个火车售票模拟程序。假如火车站要有100张火车票要卖出，
现在有5个售票点同时售票，用5个线程模拟这5个售票点的售票情况。*/
public class RailwayStation {
    private int tickets = 100;

    public RailwayStation(int tickets) {
        this.tickets = tickets;
    }

    public RailwayStation() {
    }

    public int getTickets() {
        return tickets;
    }
    public void sale(int ticket){
        tickets -= ticket;
    }
}
